/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

/* Hero Section */
.heroBanner {
  position: relative;
  padding: 2rem 0;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(135deg, #3e0d60 0%, #6b3fa0 50%, #9d5cb7 100%);
  color: white;
}

.heroBackground {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.heroContent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.heroText {
  max-width: 600px;
}

.heroTitle {
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.heroTitleMain {
  background: linear-gradient(45deg, #ffffff, #e0c3fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heroTitleSub {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  color: #e0c3fc;
}

.heroSubtitle {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.heroButtons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.heroVisual {
  display: flex;
  justify-content: center;
}

.heroStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.statItem {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.statItem:hover {
  transform: translateY(-5px);
}

.statNumber {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.statLabel {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Section Headers */
.sectionHeader {
  text-align: center;
  margin-bottom: 2rem;
}

.sectionHeader h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ifm-heading-color);
}

.sectionHeader p {
  font-size: 0.95rem;
  color: var(--ifm-color-emphasis-700);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.featuresSection {
  padding: 3rem 0;
  background: var(--ifm-background-color);
}

.featuresGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.95rem;
}

.featureCard {
  background: var(--ifm-card-background-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 9px;
  padding: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featureCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.featureCard:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.featureCard:hover::before {
  transform: scaleX(1);
}

.featureIcon {
  font-size: 1.75rem;
  margin-bottom: 0.55rem;
  display: block;
}

.featureTitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--ifm-heading-color);
}

.featureDescription {
  line-height: 1.4;
  font-size: 0.85rem;
  color: var(--ifm-color-emphasis-700);
}

/* Quick Start Section */
.quickStartSection {
  padding: 3rem 0;
  background: var(--ifm-color-emphasis-100);
}

.quickStartGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.25rem;
}

.quickStartCard {
  background: var(--ifm-card-background-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.quickStartCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--ifm-color-primary);
}

.quickStartHeader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.quickStartIcon {
  font-size: 1.5rem;
}

.quickStartTitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--ifm-heading-color);
}

.quickStartDescription {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--ifm-color-emphasis-700);
}

.commandBlock {
  background: var(--ifm-code-background);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--ifm-font-family-monospace);
  overflow-x: auto;
  white-space: pre-line;
}

.commandBlock code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--ifm-code-color);
  white-space: pre-line;
}

/* Responsive Design */
@media (max-width: 996px) {
  .heroContent {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .heroTitle {
    font-size: 2rem;
  }

  .heroStats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quickStartGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .heroBanner {
    padding: 2rem 0;
  }

  .heroTitle {
    font-size: 1.75rem;
  }

  .heroButtons {
    justify-content: center;
  }

  .heroStats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .featuresGrid {
    grid-template-columns: 1fr;
  }

  .sectionHeader h2 {
    font-size: 1.5rem;
  }

  .featuresSection,
  .quickStartSection {
    padding: 2rem 0;
  }
}

/* Dark theme adjustments */
[data-theme='dark'] .heroBackground {
  background: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

[data-theme='dark'] .statItem {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .quickStartSection {
  background: var(--ifm-background-surface-color);
}

/* Legacy styles for backward compatibility */
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}
